package com.ask.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 封装阿里云OSS的配置属性，从配置文件中读取,并封装成一个对象
 *
 */
@Component
@ConfigurationProperties(prefix = "ask.alioss")
@Data
public class AliOssProperties {

    private String endpoint;
    private String accessKeyId;
    private String accessKeySecret;
    private String bucketName;
}
